import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "Mxpio Boot",
  description: "基于 Spring Boot 研发的开发框架",
  head: [
    // 添加favicon链接
    ['link', { rel: 'icon', href: '/public/favicon.ico' }]
  ],
  themeConfig: {
    logo: "/logo.png",
    outlineTitle: "导航目录",
    outline: "deep",
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      {
        text: "指南",
        items: [
          { text: "介绍", link: "/start/introduction" },
          { text: "模块说明", link: "/modules/security/front" },
          { text: "前端文档", link: "/front/guide/directory" },
        ],
      },
      {
        text: "代码",
        items: [
          {
            text: "前端项目",
            link: "https://gitee.com/i_mxpio/mxpio-boot-antd-vue.git",
          },
          {
            text: "后端项目",
            link: "https://gitee.com/i_mxpio/mxpio-boot.git",
          },
          {
            text: "uniapp",
            link: "https://gitee.com/glf_gao/mxpio-app.git",
          },
        ]
      },
    ],
    sidebar: [
      {
        text: "快速开始",
        collapsed: false,
        items: [
          { text: "平台简介", link: "/start/introduction" },
          { text: "功能简介", link: "/start/info" },
          { text: "快速开始", collapsed: false,items:[
            { text: "前端相关", link: "/start/start/front" },
            { text: "后端相关", link: "/start/start/backstage" },
          ] },
        ],
      },
      {
        text: "部署说明",
        collapsed: false,
        items: [
          { text: "常规部署", link: "/deploy/routine" },
          { text: "容器部署", link: "/deploy/container" },
        ],
      },
      {
        text: "模块说明",
        collapsed: false,
        link: "/modules/security/front",
        items: [
          { text: "权限模块",
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/security/front" },
              { text: "后端相关", link: "/modules/security/backstage" },
            ]
          },
          { 
            text: "工作流模块", 
            // link: "/flow/flow",
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/flow/front/flow",collapsed: true,items: [
                { text: "介绍", link: "/modules/flow/front/flow" },
                { text: "表单设计器",link: "/modules/flow/front/form",collapsed: true,
                  items:[
                    { text:'设计器介绍',link: "/modules/flow/front/form"},
                    { text: "自定义组件", link: "/modules/flow/front/customCom" },
                    { text: "自定义表单", link: "/modules/flow/front/customForm" },
                  ],  
                },
                { text: "流程设计器", link: "/modules/flow/front/bpmn" },
                { text: "流程使用", link: "/modules/flow/front/apply",collapsed: true,items:[
                  {text:'发起', link: "/modules/flow/front/apply" },
                  {text:'办理', link: "/modules/flow/front/task" }
                ]},
                { text: "进阶",link: "/modules/flow/front/IntegrationFlow",collapsed: true, items:[
                  {text:'业务单集成',link: "/modules/flow/front/IntegrationFlow"}
                ] }
              ] },
              
            ]
          },
          { 
            text: "调度模块",
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/quartz/front" },
              { text: "后端相关", link: "/modules/quartz/backstage" },
            ]
          },
          { 
            text: "Excel模块",
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/excel/front/import",collapsed: true, items:[
                { text: "导入", link: "/modules/excel/front/import" },
                { text: "导出", link: "/modules/excel/front/export" },
              ] },
            ]
           },
          { 
            text: "消息模块", 
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/message/front" },
              { text: "后端相关", link: "/modules/message/backstage" },
            ]
           },
          { 
            text: "云数据库", 
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/dbconsole/front" },
              { text: "后端相关", link: "/modules/dbconsole/backstage" },
            ]
           },
          { 
            text: "多租户",
            collapsed: true,
            items: [
              { text: "前端相关", link: "/modules/multitenant/front" },
              { text: "后端相关", link: "/modules/multitenant/backstage" },
            ]
           },
        ],
      },
      {
        text: "后端组件",
        link: "/backstage",
        items: [
          { text: "ORM组件", link: "/backstage/jpa" },
          { text: "缓存组件", link: "/backstage/cache" },
          { text: "表达式引擎", link: "/backstage/expression" },
          { text: "Spring自动装配", link: "/backstage/autoconfigure" },
          { text: "自定义模块开发说明", link: "/backstage/custom" },
        ],
      },
      {
        text: "前端文档",
        collapsed: false,
        link: "/front/guide/directory",
        items: [
          {
            text: "指南",
            collapsed: true,
            items: [
              { text: "项目结构", link: "/front/guide/directory" },
              { text: "构建 & 部署", link: "/front/guide/deploy" },
              { text: "配置", link: "/front/guide/config" },
              { text: "主题定制", link: "/front/guide/theme" },
            ],
          },
          {
            text: "系统功能",
            collapsed: true,
            link: "/front/system/menu",
            items: [
              { text: "路由管理", link: "/front/system/menu" },
              { text: "单点登录", link: "/front/system/loginSSO" },
              { text: "国际化", link: "/front/system/i18n" }
            ],
          },
          {
            text: "前端组件",
            collapsed: true,
            items: [
              { text: "字典组件", link: "/front/components/dict" },
              { text: "字典组件(多选)", link: "/front/components/dictMulti" },
              { text: "下拉选择(分页)", link: "/front/components/zAsyncSelect" },
              { text: "下拉选择", link: "/front/components/zSyncSelectTag" },
              { text: "高级查询", link: "/front/components/superQuery" },
              { text: "上传组件", link: "/front/components/upload" },
              { text: "图片上传", link: "/front/components/imageUpload" },
              { text: "用户选择", link: "/front/components/user" },
              { text: "用户选择(按部门)", link: "/front/components/userByDept" },
              { text: "部门选择", link: "/front/components/dept" },
              { text: "表格组件", link: "/front/components/vxetable" },
            ],
          },
          {
            text: "通用方法",
            collapsed: true,
            items: [
              { text: "请求封装", link: "/front/utils/api" },
              { text: "查询构造器", link: "/front/utils/criteria" }
            ]
          },
        ],
      },
      {
        text: "其它",
        collapsed: false,
        items: [
          { text: "常见问题", link: "/other/faq" }
        ]
      }
    ],
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2020-2023 Mxpio-Boot'
    },
    search: {
      provider: 'local'
    }
  },
  
})
